package io.jee.medusa;

import javax.annotation.Resource;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.core.env.Environment;

public abstract class ConstantSupport implements InitializingBean {
	
	public static boolean PRODUCTION = false;
	
	private Environment env;
	
	@Override
	public void afterPropertiesSet() throws Exception {
		PRODUCTION = Boolean.parseBoolean(env.getProperty("pro.active", "false"));
		
	}

	public Environment getEnv() {
		return env;
	}

	@Resource
	public void setEnv(Environment env) {
		this.env = env;
	}

	
}
